package com.elvin.wx.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.elvin.wx.beans.WireDevBase;
import com.elvin.wx.mapper.EmployeeMapper;
import com.elvin.wx.mapper.WireDevDeviceMapper;
import com.elvin.wx.service.WireDevDeviceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 无线设备表 服务实现类
 * </p>
 *
 * @author zhenchl
 * @since 2022-01-14
 */
@Service
public class WireDevDeviceServiceImpl extends ServiceImpl<WireDevDeviceMapper, WireDevBase> implements WireDevDeviceService {

    @Resource
    private WireDevDeviceMapper mapper;

    @Override
    public void updateBy(WireDevBase entity) throws Exception {
            mapper.updateBy(entity);
    }

    @Override
    public int selectPageCount(WireDevBase wireDevBase) {
        return mapper.selectPageCount(wireDevBase);
    }

    @Override
    public List<WireDevBase> selectForPage(WireDevBase wireDevBase) {
        return mapper.selectForPage(wireDevBase);
    }

    @Override
    public Map<String, Object> getOnlineCount(Map<String, Object> map) {
        return mapper.getOnlineCount(map);
    }
}
